#include "widget.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QString style = "QPubhButton { color: red;}"; // 默认状态
    style += "QPushButton::hover { color: green;}"; // 鼠标悬停的状态
    style += "QPushButton::pressed { color: blue;}"; // 鼠标按下的状态
    a.setStyleSheet(style);
    Widget w;
    w.show();
    return a.exec();
}
